home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 120
/
Vol 120.iso
/
games
/
anacroz.swf
/
scripts
/
DefineButton2_1746
/
BUTTONCONDACTION on(press).as
Wrap
Text File
|
2010-11-09
|
598b
|
27 lines
on(press){
if(_root.sd_sel >= 0)
{
if(_root["s" + _root.sd_sel]._currentframe == 7)
{
_root.showAlert("Catapultas não podem carregar itens!");
}
else
{
if(_root.sd_sel == 0)
{
_root.sd_item_sel = _root["s" + _root.sd_sel]._currentframe + 6;
}
else
{
_root.sd_item_sel = _root["s" + _root.sd_sel]._currentframe;
}
_root.destino = "itens";
play();
}
}
else
{
_root.showAlert("Selecione algum soldado!");
}
}